package com.lsl.factory_method.example2.method.weapontype;

import com.lsl.factory_method.example2.method.WeaponType;
import lombok.RequiredArgsConstructor;

/**
 * 精灵族打造的武器类型
 *
 * @author Zed
 * @description
 * @date 2023/1/8 14:58
 */
@RequiredArgsConstructor
public class ElfWeapon implements Weapon {
    private final WeaponType weaponType;

    @Override
    public WeaponType getWeaponType() {
        return weaponType;
    }
    @Override
    public String toString() {
        return "an elven " + weaponType;
    }
}
